/**
 * Copyright (c) 2018-2028, LookAhead.
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.lookahead.parent.common.secure;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * AuthInfo认证信息
 *
 * @author LookAhead
 */
@Data
public class AuthInfo {
	/**
	 * 令牌
	 */
	private String accessToken;
	/**
	 * 令牌类型
	 */
	private String tokenType;
	/**
	 * 刷新令牌
	 */
	private String refreshToken;
	/**
	 * 用户ID
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long userId;
	/**
	 * 第三方系统ID
	 */
	private String oauthId;
	/**
	 * 头像
	 */
	private String avatar = "XXX";
	/**
	 * 角色名
	 */
	private String authority;
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 账号名
	 */
	private String account;
	/**
	 * 注册标识（仅限用于移动APP端）
	 */
	private Integer isRegister;
	/**
	 * 过期时间
	 */
	private long expiresIn;
	/**
	 * 许可证
	 */
	private String license = "powered by la";
	/**
	 * 文件域名
	 */
	private String host = "";
	/**
	 * 第三方登录是否绑定SysUser表中得ID 0.未绑定;1.已绑定
	 */
	private Integer isBindUser;
	/**
	 * 微信名称
	 */
	private String wechatNickname = "";
}
